﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Transcend.DP3.Db
{
	public class DatabaseFactory
	{

		private string connectionString;

		public string ConnectionString
		{
			get { return connectionString; }
			set { connectionString = value; }
		}

		public Database OpenDatabase(string connectionString)
		{
			return new Database(connectionString);
		}

		/// <summary>
		/// 打开默认数据库帮助类实例
		/// </summary>
		/// <returns></returns>
		public Database OpenDatabase()
		{
			return OpenDatabase(this.connectionString);
		}

	}
}
